From c352f9d501adba87b1a799e4001ab1c41a30d5a5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=3D=3FUTF-8=3Fq=3FFabi=3DC3=3DA1n=3D20Ezequiel=3D20Gallina?= =?utf8?q?=3F=3D?= Date: Thu, 17 May 2012 00:03:12 -0300 Subject: [PATCH] Small cornercase fix to python-info-current-defun. Returned the bad defun name when point was at the beginning of defun. --- lisp/progmodes/python.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 321bc5eb94a..b11741d4a68 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el @@ -1942,8 +1942,8 @@ not inside a defun." (save-restriction (widen) (save-excursion - (forward-comment -1) (goto-char (line-end-position)) + (forward-comment -1) (while (and (not (equal 0 (current-indentation))) (not (python-beginning-of-defun-function 1 t))) (when (or (not min-indent) -- 2.30.2